import axios from "./config";
//定义请求接口
export const loginApi = (data = {}) =>
  axios.post("http://chst.vip/users/register", data);
//获取验证码
export const getCaptchaApi = () => axios.get("/users/getCaptcha");
//校验验证码
export const verifyCaptcha = () =>
  axios.get("/users/verifyCaptcha", {
    params: {
      captcha,
    },
  });
